﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WoWTimer.Classes
{
    public class Options
    {
        string _luaFile;
        string _luaDir;
        int _remaining;
        int _volume;
        string _speachText;

        public Options()
        {
            _luaFile = "";
            _luaDir = "";
            _remaining = 10;
            _volume = 70;
            _speachText = "$ZONE$ on $REALM$ starts in $REMAINING$ minutes. Good luck!";
        }

        public string LuaFile
        {
            get { return _luaFile; }
            set
            {
                if (value == _luaFile)
                    return;

                if (value == null)
                    return;

                _luaFile = value;
            }
        }

        public string LuaDir
        {
            get { return _luaDir; }
            set
            {
                if (value == _luaDir)
                    return;

                if (value == null)
                    return;

                _luaDir = value;
            }
        }

        public int Remaining
        {
            get { return _remaining; }
            set
            {
                if (value == _remaining)
                    return;

                _remaining = value;
            }
        }

        public int Volume
        {
            get { return _volume; }
            set
            {
                if (value == _volume)
                    return;

                _volume = value;
            }
        }

        public string SpeachText
        {
            get { return _speachText; }
            set
            {
                if (value == _speachText)
                    return;

                if (value == null)
                    return;

                _speachText = value;
            }
        }
    }
}
